<template>
  <div id="app">
    <!-- 路由出口,路由匹配到的组件都在这显示 -->
    <router-view></router-view>
    <FooterGuide v-show="$route.meta.isShowFooterGuide"/>
  </div>
</template>

<script>
import {autoLogin} from './network'
import {ADD_RESULT} from './store/mutations_type'
import FooterGuide from './components/FooterGuide/FooterGuide'
export default {
  name: 'App',
  components: {
    FooterGuide
  },
  async mounted() {
    const result = await autoLogin()
    this.$store.commit(ADD_RESULT, result.data)
  }
}
</script>

<style lang="stylus">
  @import '../src/common/stylus/mixins.styl'
</style>
